package com.rraj.apiversion;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by WangSheng on 2017/6/20.
 *
 * @author WangSheng
 * @date 2017/06/20
 */
@RestController
public class Demo1Controller {
    @RequestMapping("/{version}/hello")
    @ApiVersion("3.3")
    public String hello2(@PathVariable String version){
        System.out.println("haha3........." + version);
        return "hello3...." + version;
    }
    @RequestMapping("/{version}/hello")
    public String hello4(@PathVariable String version){
        System.out.println("haha4........." + version);
        return "hello4...." + version;
    }
}
